﻿namespace BM.Tools.WebControls.MForm.BlogExample
{
    using System;

    /// <summary>
    /// This is a dummy login page that is used only to set the "user" session key
    /// </summary>
    public partial class Login : System.Web.UI.Page
    {
        /// <summary>
        /// Sets the user session key and redirects
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The event args.
        /// </param>
        protected void LoginAndRedirect(object sender, EventArgs e)
        {
            Session["user"] = UserName.Text;
            Response.Redirect("Entries.aspx");
        }
    }
}
